home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14967 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: cypher.3do.com!user
  2. From: tsw@3do.com (Tom Watson)
  3. Newsgroups: comp.lang.c++,comp.lang.c,alt.lang.delphi,comp.lang.pascal.delphi.misc,comp.lang.pascal.delphi.components
  4. Subject: Re: Checking for security device connected to lpt1
  5. Date: Tue, 02 Apr 1996 14:48:03 -0800
  6. Organization: The 3DO Corporation
  7. Distribution: world
  8. Message-ID: <tsw-0204961448030001@cypher.3do.com>
  9. References: <316071EA.51BF@telepost.no>
  10. NNTP-Posting-Host: cypher.3do.com
  11.  
  12. In article <316071EA.51BF@telepost.no>, Ken Dahle <kendahle@telepost.no> wrote:
  13.  
  14. > Hello.
  15. > Can anyone give a clue about how to write code to check for a security 
  16. > device connected to the parallel port(lpt1)?
  17. > Examples in any lang. would be great.
  18.  
  19.  
  20. How about this: (coded in C, probably compatable with C++)
  21.  
  22. /* Routine to detect security device */
  23. int is_secure (void)
  24.    {
  25.    return 1;      /* Value of true */
  26.    }
  27.  
  28. It should work in all cases I know about.  If you have a security device,
  29. it will return the value 1 (facsimile of TRUE).  Saves EVERYONE lots of
  30. time!!
  31.  
  32. :-)
  33.  
  34. -- 
  35. Tom Watson
  36. tsw@3do.com         (Home: tsw@johana.com)
  37.